/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package packageModel;

import java.io.Serializable;
import java.util.GregorianCalendar;

/**
 *
 * @author laurent
 */
public class Promotion implements Serializable
{
    private GregorianCalendar startDate;
    private GregorianCalendar endDate;
    private Double discountPercentage;
    private Integer quantityOffered;
    private Integer quantityToPurchase;
    
    public Promotion(GregorianCalendar startDate, GregorianCalendar endDate, Double discountPercentage)
    {
        this.startDate = startDate;
        this.endDate = endDate;
        this.discountPercentage = discountPercentage;
    }
    
    public Promotion(GregorianCalendar startDate, GregorianCalendar endDate, Integer quantityOferred, Integer quantityToPurchase)
    {
        this.startDate = startDate;
        this.endDate = endDate;
        this.quantityOffered = quantityOferred;
        this.quantityToPurchase = quantityToPurchase;
    }
    
    
    public GregorianCalendar getStartDate() { return startDate; }
    public GregorianCalendar getEndDate() { return endDate; }
    public Double getDiscountPercentage() { return discountPercentage; }
    public Integer getQuantityOffered() { return quantityOffered; }
    public Integer getQuantityToPurchase() { return quantityToPurchase; }
    
    public void setStartDate(GregorianCalendar startDate) { this.startDate = startDate; }
    public void setEndDate(GregorianCalendar endDate) { this.endDate = endDate; }
    public void setDiscountPercentage(Double discountPercentage) { this.discountPercentage = discountPercentage; }
    public void setQuantityOffered(Integer quantityOffered) { this.quantityOffered = quantityOffered; }
    public void setQuantityToPurchase(Integer quantityToPurchase) { this.quantityToPurchase = quantityToPurchase; }

}
